<?php
$group_name = $_POST['group_name'];
$group_portion = $_POST['group_portion'];
$group_crtime  = $_POST['group_crtime'];
$group_uptime  = $_POST['group_crtime'];
include_once("../../untils/conn.php");
if ($con) {
  mysqli_query($con, "set names utf8");
  $data = mysqli_query($con, "insert into proxy_group(group_name,group_portion,group_crtime,group_uptime) values('$group_name','$group_portion','$group_crtime','$group_uptime')");
  if ($data) {
    echo ("<script>alert('添加信息成功')</script>");
    echo ("<script>window.location.href='../group.php'</script>");
  } else {
    echo ("<script>alert('添加失败,请输入全部数据');history.back();</script>");
  }
}
